import junit.framework.TestCase;

public class TestAlgoritmos extends TestCase {
	
       public void testSuma(){
               Algoritmos alg = new Algoritmos();
               assertEquals((double)5,alg.suma(3, 2));
               assertEquals((double)5,alg.suma(3, 2));
               assertEquals((double)7,alg.suma(5, 2));
               assertEquals((double)-5,alg.suma(-3, -2));
               assertEquals((double)25.5,alg.suma(15.5, 10 ));
               assertEquals((double)1,alg.suma(1, 0));
               assertNotSame((double)5, alg.suma(3, 3));
               assertNotSame((double)8,alg.suma(5, 2));
               assertNotSame((double)-2,alg.suma(-3, -2));
               assertNotSame(3.5,alg.suma(15.5, 10 ));
               assertNotSame((double)2,alg.suma(1, 0));
       }
       
       public void testResta(){
               Algoritmos alg = new Algoritmos();
               assertEquals((double)1,alg.resta(3, 2));
               assertEquals((double)1, alg.resta(3, 2));
               assertEquals((double)3,alg.resta(5, 2));
               assertEquals((double)-1,alg.resta(-3, -2));
               assertEquals((double)5.5,alg.resta(15.5, 10 ));
               assertEquals((double)1,alg.resta(1, 0));
               assertNotSame((double)1, alg.resta(3, 3));
               assertNotSame((double)2,alg.resta(5, 2));
               assertNotSame((double)-2,alg.resta(-3, -2));
               assertNotSame((double)3.5,alg.resta(15.5, 10 ));
               assertNotSame((double)2,alg.resta(1, 0));
       }
       
       public void testMultiplicacion(){
               Algoritmos alg = new Algoritmos();
               assertEquals((double)6,alg.multiplicacion(3, 2));
               assertEquals((double)10,alg.multiplicacion(5, 2));
               assertEquals((double)6,alg.multiplicacion(-3, -2));
               assertEquals((double)155,alg.multiplicacion(15.5, 10 ));
               assertEquals((double)0,alg.multiplicacion(1, 0));
               assertNotSame((double)12, alg.multiplicacion(3, 3));
               assertNotSame((double)3,alg.multiplicacion(5, 2));
               assertNotSame((double)-2,alg.multiplicacion(-3, -2));
               assertNotSame((double)3.5,alg.multiplicacion(15.5, 10 ));
               assertNotSame((double)2,alg.multiplicacion(1, 0));
       }
       
       public void testDivision(){
               Algoritmos alg = new Algoritmos();
               assertEquals(1.5,alg.division(3, 2));
               assertEquals((double)5,alg.division(10, 2));
               assertEquals(1.5,alg.division(-3, -2));
       }
}